try:
    num = int(input("请输入一个整数："))

    result = 8 / num

    print(result)
except ZeroDivisionError:
    print("除0错误")
# except ValueError:
#     print("输入的不是整数")
except Exception as res:
    print("位置错误 %s " % res)
